Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@retlehs
retlehs / backlinks.sh
Created April 17, 2026 15:54
Backlinks for any domain via Common Crawl

概要

VRChatにおいて、私がUdonなどを扱う際に参考にしている、または参考になりそうなサイトを列挙していきます。
知人に「どこかに纏めて置いたほうが良いよ」と言われたのですが、ちゃんと纏められる時間が無いため一旦Gistに書いています。

Unity関連

【Unity開発】Animator Controllerの遷移設定(Duration等)【ひよこエッセンス】 - Unity(C#)初心者・入門者向けチュートリアル ひよこのたまご
Unityのアニメーションについての情報です。ワールドでもアバターでも使うと思います。

ワールド関連

3歳でも出来るVRChatのワールドの作り方 | バーチャルライフマガジン

@luigiMinardi
luigiMinardi / tex-colors.md
Last active April 21, 2026 08:26
Github markdown colors (Using Tex and the github MathJax support)

Small warning for everyone that are thinking if using Tex colors is a good idea or not

  • 2023-05-02 - Since a few days ago \colorbox and \fcolorbox are broken and Github did't talk about if it's a temporary thing or if it will not be added back.
    • 2024-01-04 - Since it has not being added back I deduce that it will never be so I removed all mentions to it on the rest of the gist.
  • 2023-09-29 - Tex seems to not work on h1 to h6 anymore (markdown #'s)
    • 2024-01-04 - Now it works again, I'll keep the message for a while to remember that it may change again in the future

As you can se with the above message(s) Tex may not be very stable and may not be an option to you as of the dates expressed above. You can also check other tex problems here.

Github released Tex support and colors* to the markdown and you din't realized

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp